package com.itheima.Jiuye04;

public class Test01 {
    public static void main(String[] args) {
         goSwimming(new Swinmming() {
             @Override
             public void swin() {
                 System.out.println("铁汁，游泳去");
             }
         });
    }
    public  static void goSwimming(Swinmming swinmming){
        swinmming.swin();
    }
}



interface Swinmming{
    void swin();
}